<html>


<?

$background = "white";
$colors = $_POST["color"];
   
if(isset($colors)) 
  {
      $count = count($colors);
      for($i=0; $i < $count; $i++)
      {
          switch ($colors[$i])
          {
          	  case "g" :
                  $background = "green";
                  break;
              case "r" :
                  $background = "red";
                  break;
              case "b" :
                  $background = "blue";
                  break;
          }
          
      }
  }
?>
<body style='background-color:<?echo $background;?>'>

Welcome <?php echo $_POST["fname"]; ?>!<br>
You are <?php echo $_POST["age"]; ?> years old.
Address <?php echo $_POST["addre"]; ?> years old.


</body>
</html>